package com.example.stumanager.entity;

/**
 * 用户实体类
 */
public class UserEntity {

    /**
     * 学号或账号
     */
    String number;

    /**
     * 姓名
     */
    String name;

    /**
     * 密码
     */
    String passWord;

    /**
     * 宿舍
     */
    String dormitory;

    /**
     * 班级
     */
    String grade;

    /**
     * 权限 0管理员 1学生
     */
    int power;

    public UserEntity(String number, String name, String passWord, String dormitory, String grade, int power) {
        this.number = number;
        this.name = name;
        this.passWord = passWord;
        this.dormitory = dormitory;
        this.grade = grade;
        this.power = power;
    }

    public UserEntity(String number, String name, String passWord, String dormitory, String grade) {
        this.number = number;
        this.name = name;
        this.passWord = passWord;
        this.dormitory = dormitory;
        this.grade = grade;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public String getDormitory() {
        return dormitory;
    }

    public void setDormitory(String dormitory) {
        this.dormitory = dormitory;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public int getPower() {
        return power;
    }

    public void setPower(int power) {
        this.power = power;
    }
}
